package com.shangcheng.goods.service;

import com.github.pagehelper.PageInfo;
import com.shangcheng.goods.pojo.Sku;
import com.shangcheng.goods.pojo.Spu;

import java.util.List;
import java.util.Map;

public interface SkuService {
    Map search(Map<String, String> searchMap);

    List<Sku> findList(Sku sku);

    Sku findById(Long id);

    /**
     * 扣减库存
     *
     * @param username
     */
    void decrCount(String username);
}
